package org.wang.gift.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.wang.gift.dto.SmsCodeDto;
import org.wang.gift.util.AjaxResult;

@FeignClient(value = "GIFT-COMMON-SERVER",fallbackFactory = SmsClientFallbackFactory.class)
public interface SmsClient {
    @PostMapping("/sms/register/{mobile}")
    AjaxResult sendSmsCodeRegister(@PathVariable("mobile") String mobile);
    @PostMapping("/sms/validation")
    AjaxResult validationSmsCode(@RequestBody SmsCodeDto smsCodeDto);
}
